#pragma once

#define Die(code)   \
    do              \
    {               \
        exit(code); \
    } while (0);

#define CONV(v) ((struct sockaddr *)v)

enum
{
    SOCKET_ERR = 1,
    BIND_ERR,
    LISTEN_ERR,
    ACCEPT_ERR
};